package com.example.video.video_server.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 视频基本信息表
 * </p>
 *
 * @author yj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="VideoInfo对象", description="视频基本信息表")
@Table(name = "video_info")
public class VideoInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    @IsAutoIncrement
    @IsKey
    @Column
    private Integer id;

    @ApiModelProperty(value = "名称")
    @Column(name = "name", comment = "名称", isNull = false)
    private String name;

    @ApiModelProperty(value = "作者")
    @Column(name = "author", comment = "作者")
    private String author;

    @ApiModelProperty(value = "标签")
    @Column(name = "labels", comment = "标签", isNull = false)
    private String labels;

    @ApiModelProperty(value = "标题")
    @Column(name = "title", comment = "标题")
    private String title;

    @ApiModelProperty(value = "简介")
    @Column(name = "synopsis", comment = "简介")
    private String synopsis;

    @ApiModelProperty(value = "类别父id")
    @Column(name = "category_parent_id", comment = "类别父id", isNull = false)
    private Integer categoryParentId;

    @ApiModelProperty(value = "类别id")
    @Column(name = "category_id", comment = "类别id", isNull = false)
    private Integer categoryId;

    @ApiModelProperty(value = "封面图片路径")
    @Column(name = "cover_img", comment = "封面图片路径")
    private String coverImg;

    @ApiModelProperty(value = "创建人id")
    @Column(name = "created_id", comment = "创建人id", isNull = false)
    private Integer createdId;

    @ApiModelProperty(value = "0：单集 1：多集")
    @Column(name = "is_single", comment = "0：单集 1：多集", type = "char",length = 1, isNull = false)
    private String isSingle;

    @ApiModelProperty(value = "0：已发布  1: 未发布")
    @Column(name = "is_release", comment = "0：已发布  1: 未发布", type = "char",length = 1, isNull = false)
    private String isRelease;


}
